﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace SignInServer.Server.Configuration
{
    /// <summary>
    /// socket配置
    /// </summary>
    class SocketConfiguration
    {
        /// <summary>
        /// 服务器端口
        /// </summary>
        public static readonly int PORT = 12345;
        /// <summary>
        /// 最大连接客户端数
        /// </summary>
        public static readonly int CONN_SIZE = 100;
        /// <summary>
        /// 数据包开始标识符
        /// </summary>
        public static readonly byte DATA_START_TAG = 0x98;
        /// <summary>
        /// 数据包结束标识符
        /// </summary>
        public static readonly byte DATA_END_TAG = 0x99;
        /// <summary>
        /// 包裹最大大小
        /// </summary>
        public static readonly int PACK_SIZE = 1000;
        /// <summary>
        /// 缓冲区大小
        /// </summary>
        public static readonly int BUFF_SIZE = 10 * 1024;
    }
}
